export default function authModule(app, opt, next) {
  app.post(
    "/login",
    {
      config: { allowGuest: true },
    },
    () => {
      return {
        token: "hello",
      };
    }
  );

  app.get(
    "/captcha",
    {
      config: { allowGuest: true },
    },
    () => {
      return {};
    }
  );

  app.post("/current-role/switch", () => {
    return {};
  });
  app.post("/auth/logout", () => {
    return {};
  });
  next();
}
export const autoPrefix = "/auth";
